<h1>Members</h1>

<table width="100%">
	<tr>
		<td>{mm_alpha key="filter" base=$content.alpha_base}</td>
		<td align="right">
			<form method="get" action="index.php">
			<input type="hidden" name="what" value="members" />
			<input type="hidden" name="filter" value="{$content.filter}" />
			<input type="text" name="search" value="{$content.search}" />
			<input type="submit" value="Search" /><br />
			<a href="index.php?what=search&amp;do=advanced">Advanced Search</a> |
			<a href="index.php?what=members">Reset Results</a>
			</form>
		</td>
	</tr>
</table>
<table class="data_table" width="100%" cellpadding="5" cellspacing="0">
	<tr class="data_table_header">
		<td width="1%"></td>
		<td>Name</td>
		<td>Email Address</td>
		<td>Last Seen</td>
		<td>Movies</td>
		<td></td>
	</tr>
	{if $content.members}
		{foreach from=$content.members item=m}
			<tr>
				<td><input type="checkbox" name="id[]" value="{$m.id}" /></td>
				<td>{$m.username}</td>
				<td>{$m.email}</td>
				<td>{$m.last_login}</td>
				<td>{$m.movie_count}</td>
				<td align="right" nowrap="nowrap"><a href="index.php?what=members&amp;do=collection&amp;id={$m.id}">View %n's Movie Collection</a> | <a href="index.php?what=members&amp;do=wishlist&amp;id={$m.id}">View Wishlist</a></td>
			</tr>
		{/foreach}
	{else}
		<tr>
			<td colspan="6" align="center">No members found</td>
		</tr>
	{/if}
</table>
{pagination pagination=$content.pagination}